﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ihongma.Web.UI.Page.index" ValidateRequest="false" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="ihongma.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by ihongma Template Engine at 2013/9/5 17:13:43.
		本页面代码由ihongma模板引擎生成于 2013/9/5 17:13:43. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
get_cache_html("indexv2");

	templateBuilder.Append("<!DOCTYPE HTML>\r\n<html lang=\"zh-CN\">\r\n<head>\r\n<meta charset=\"utf-8\" />\r\n<title>");
	templateBuilder.Append(config.webtitle);
	templateBuilder.Append("</title>\r\n");
	int channel_id = 0;
	

	templateBuilder.Append("\r\n<meta name=\"description\" content=\"");
	templateBuilder.Append(config.webdescription);
	templateBuilder.Append("\">\r\n<meta name=\"keywords\" content=\"");
	templateBuilder.Append(config.webkeyword);
	templateBuilder.Append("\">\r\n\r\n\r\n ");

	templateBuilder.Append("<meta content=\"all, index, follow\" name=\"robots\">\r\n<meta content=\"Copyright 2013 ihongma.com\" name=\"copyright\">\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n<link rel=\"shortcut icon\" href=\"/favicon.ico\">\r\n<link rel=\"stylesheet\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/global.css\"\r\ntype=\"text/css\" media=\"screen\" />\r\n<link rel=\"stylesheet\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/font-awesome.min.css\">\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:1483px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max1483.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:1232px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max1232.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:991px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max991.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:750px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max750.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:479px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max479.css\"\r\n/>");


	templateBuilder.Append("\r\n\r\n\r\n<body>\r\n\r\n ");

	templateBuilder.Append("<header>\r\n<script>\r\n    function submitTest() {\r\n        if ($(\"#d_search\").val() == \"\")\r\n        { return false; }\r\n        else {\r\n            return true;\r\n        }\r\n    }\r\n</");
	templateBuilder.Append("script>\r\n  <div class=\"wrapper\">\r\n    <a class=\"logo\" href=\"http://www.ihongma.com/\" title=\"鸿马网\">鸿马网</a>\r\n    <div class=\"search\">\r\n    <form method=\"get\"  action=\"/search.aspx\"   onsubmit='return submitTest()'>\r\n      <input class=\"submit_input\" id=\"d_search\" name=\"keyword\" placeholder=\"Search...\" type=\"text\">\r\n      <input class=\"submit_button\" value=\"Search\" type=\"submit\">\r\n       </form>\r\n    </div>\r\n    <div class=\"menu_icon\"><span class=\"icon-align-justify\"></span></div>\r\n    <div class=\"menu\">\r\n      <ul>\r\n      <li><a id=\"a0\"  href=\"/\">首页</a></li>\r\n      <li><a id=\"a11\" href=\"");
	templateBuilder.Append(linkurl("design_list1",""));

	templateBuilder.Append("\">网站设计</a></li>\r\n      <li><a id=\"a14\" href=\"");
	templateBuilder.Append(linkurl("services",""));

	templateBuilder.Append("\">鸿马服务</a></li>\r\n      <li><a id=\"a13\" href=\"");
	templateBuilder.Append(linkurl("ajax_list1",""));

	templateBuilder.Append("\">JS特效</a></li>\r\n      <li><a id=\"a10\" href=\"");
	templateBuilder.Append(linkurl("photo_list1",""));

	templateBuilder.Append("\">图片库</a></li>\r\n      <li><a id=\"a1\" href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\">有趣的事</a></li>\r\n      </ul>\r\n      <div class=\"menu_close\"><span class=\"icon-remove\"></span></div>\r\n    </div>\r\n  </div>\r\n  <hr> \r\n</header>");

ihongma.Web.Plugin.Advert.BLL.advert_banner bbll = new ihongma.Web.Plugin.Advert.BLL.advert_banner();
	DataTable dsbar = bbll.GetList(4,"is_lock=0 and datediff('d',start_time,now())>=0 and datediff('d',end_time,now())<=0 "," add_time desc").Tables[0];
	   

	templateBuilder.Append("\r\n<div class=\"wrapper\">\r\n\r\n  <div class=\"list_carousel\">\r\n    <ul id=\"hotNews\">\r\n       ");
	int bar2__loop__id=0;
	foreach(DataRow bar2 in dsbar.Rows)
	{
		bar2__loop__id++;


	templateBuilder.Append("\r\n      <li>\r\n        <span class=\"img\"><img  width=\"459\" height=\"256\" alt=\"" + bar2["title"].ToString().Trim() + "\" title=\"" + bar2["title"].ToString().Trim() + "\" src=\"" + bar2["file_path"].ToString().Trim() + "\"></span>\r\n        <h4><a href=\"" + bar2["link_url"].ToString().Trim() + "\">" + bar2["title"].ToString().Trim() + "</a></h4>\r\n        <p><a href=\"" + bar2["link_url"].ToString().Trim() + "\">" + bar2["content"].ToString().Trim() + "</a></p>\r\n      </li>\r\n       ");
	}	//end loop


	templateBuilder.Append("    \r\n    \r\n    </ul>\r\n    <div class=\"clearfix\"></div>\r\n    <div id=\"timer1\" class=\"timer\"></div>\r\n    <div id=\"sliderpager1\" class=\"sliderpager\"></div>\r\n  </div>\r\n  <div class=\"services_indright\">\r\n    <h4>营造人们喜欢用的在线体验</h4>\r\n    <ul>\r\n      <li><ahref=\"/services/show/strategy.aspx\"><i class=\"icon-cog\"></i><span>鸿马策划</span></a></li>\r\n      <li><a href=\"/services/show/ue.aspx\"><i class=\"icon-user\"></i><span>用户体验</span></a></li>\r\n      <li><a href=\"/services/show/design.aspx\"><i class=\"icon-pencil\"></i><span>鸿马设计</span></a></li>\r\n      <li><a href=\"/services/show/development.aspx\"><i class=\"icon-edit\"></i><span>鸿马开发</span></a></li>\r\n      <li><a href=\"/services/show/marketing.aspx\"><i class=\"icon-briefcase\"></i><span>鸿马营销</span></a></li>\r\n    </ul>\r\n  </div>\r\n  <div class=\"about_indright\">\r\n    <h4>我们是鸿马</h4>\r\n    <p>鸿马致力于网站建设、互动专题网站的创意规划以及电子商务的应用与推广。我们具有丰富的网络服务经验，拥有高级的程序员及设计师，以及充足的软硬件资源，这一切都在为成为您理想的合作伙伴而努力。<a href=\"/services.aspx\">了解我们</a></p>\r\n  </div>\r\n  <div class=\"clearfix\"></div>\r\n  \r\n  <ul class=\"sub_menu border_bottom margin_top30\">\r\n    <li><a href=\"design.html\">所有网站</a></li>\r\n    <li><a href=\"design.html\">最新设计</a></li>\r\n    <li class=\"tag\"><a class=\"od_button\" onClick=\"opclose(this,'.tags')\">标签检索</a></li>\r\n    <li class=\"color\"><a class=\"od_button\" onClick=\"opclose(this,'.colors')\">颜色检索</a></li>\r\n  </ul>\r\n  <!---->\r\n  <ul class=\"filter tags\" id=\"systemtag\">\r\n        ");
	DataTable tags = get_tags_list();
	

	int item__loop__id=0;
	foreach(DataRow item in tags.Rows)
	{
		item__loop__id++;


	templateBuilder.Append("\r\n          <li><a href=\"");
	templateBuilder.Append(linkurl("design_list2",item["id"].ToString().Trim(),1));

	templateBuilder.Append("\" title=\"" + item["name"].ToString().Trim() + "\">" + item["name"].ToString().Trim() + "</a></li>\r\n          ");
	}	//end loop


	templateBuilder.Append("\r\n  </ul>\r\n  <ul class=\"filter colors\">\r\n    <span class=\"color red\" rel=\"1\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","red",1));

	templateBuilder.Append("\">红色</a></span>\r\n    <span class=\"color yellow\" rel=\"2\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","yellow",1));

	templateBuilder.Append("\">黄色</a></span>\r\n    <span class=\"color green\" rel=\"3\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","green",1));

	templateBuilder.Append("\">绿色</a></span>\r\n    <span class=\"color blue\" rel=\"4\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","blue",1));

	templateBuilder.Append("\">蓝色</a></span>\r\n    <span class=\"color orange\" rel=\"5\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","orange",1));

	templateBuilder.Append("\">橙色</a></span>\r\n    <span class=\"color pink\" rel=\"6\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","pink",1));

	templateBuilder.Append("\">粉红</a></span>\r\n    <span class=\"color gray\" rel=\"7\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","gray",1));

	templateBuilder.Append("\">银色</a></span>\r\n    <span class=\"color white\" rel=\"8\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","white",1));

	templateBuilder.Append("\">白色</a></span>\r\n    <span class=\"color brown\" rel=\"8\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","brown",1));

	templateBuilder.Append("\">棕色</a></span>\r\n    <span class=\"color black\" rel=\"9\"><em></em> <a href=\"");
	templateBuilder.Append(linkurl("design_list3","black",1));

	templateBuilder.Append("\">黑色</a></span>\r\n  </ul>\r\n  <!---->\r\n  <ul class=\"listitem\">\r\n    ");
	DataTable article_list5 = get_website_list(11,10, "");
	

	int adr5__loop__id=0;
	foreach(DataRow adr5 in article_list5.Rows)
	{
		adr5__loop__id++;


	    string locktex=adr5["state"].ToString()=="1"?"当前锁定状态，可以购买":"当前解锁状态";
	
	
	
	    

	templateBuilder.Append("\r\n    <li>\r\n      <div class=\"screenshot\">\r\n        <a href=\"");
	templateBuilder.Append(linkurl("design_show",adr5["id"].ToString().Trim()));

	templateBuilder.Append("\"><img title=\"" + adr5["name"].ToString().Trim() + "\" src=\"" + adr5["img"].ToString().Trim() + "\" alt=\"" + adr5["name"].ToString().Trim() + "\" height=\"122\" width=\"218\">\r\n        <div class=\"info\">\r\n          <div class=\"state\">");
	templateBuilder.Append(locktex);
	templateBuilder.Append("</div>\r\n        </div>\r\n        </a>\r\n      </div>\r\n      <div class=\"name\"><a href=\"");
	templateBuilder.Append(linkurl("design_show",adr5["id"].ToString().Trim()));

	templateBuilder.Append("\">" + adr5["name"].ToString().Trim() + "</a></div>\r\n      <div class=\"tag\">\r\n        <i>标签:</i> \r\n         ");
	DataTable tag_list = get_tags_list("id in ("+adr5["tags"].ToString().Trim()+")");
	

	int tagr1__loop__id=0;
	foreach(DataRow tagr1 in tag_list.Rows)
	{
		tagr1__loop__id++;


	templateBuilder.Append(" <a href=\"");
	templateBuilder.Append(linkurl("design_list2",tagr1["id"].ToString().Trim(),1));

	templateBuilder.Append("\">" + tagr1["name"].ToString().Trim() + "</a>\r\n        \r\n        ");
	}	//end loop


	templateBuilder.Append("\r\n      \r\n      </div>\r\n    </li>\r\n       \r\n        ");
	}	//end loop


	templateBuilder.Append("\r\n   \r\n  </ul>\r\n  \r\n  \r\n  <hr>\r\n  \r\n  <ul class=\"sub_menu\">\r\n    <li><a href=\"/ajax.aspx\">JS特效</a></li>\r\n    <li><a href=\"#\">全部分类</a></li>\r\n  </ul>\r\n  <div id=\"tabs\">\r\n    <ul class=\"tabslist\">\r\n      ");
	DataTable aj_list = newget_category_list(13,0);
	

	int ajax5__loop__id=0;
	foreach(DataRow ajax5 in aj_list.Rows)
	{
		ajax5__loop__id++;


	templateBuilder.Append("\r\n        <li><A href=\"#num_" + ajax5["title"].ToString().Trim() + "\">" + ajax5["title"].ToString().Trim() + "</A></li>\r\n        ");
	}	//end loop


	templateBuilder.Append("\r\n \r\n    </ul>\r\n    <div class=\"clearfix\"></div>\r\n       ");
	int zajax5__loop__id=0;
	foreach(DataRow zajax5 in aj_list.Rows)
	{
		zajax5__loop__id++;


	templateBuilder.Append("\r\n        <div id=\"num_" + zajax5["title"].ToString().Trim() + "\" class=\"tab_con\">\r\n        ");
	DataTable aj_lists = get_category_list(13, int.Parse(zajax5["id"].ToString().Trim()));
	

	int ajaxz__loop__id=0;
	foreach(DataRow ajaxz in aj_lists.Rows)
	{
		ajaxz__loop__id++;


	templateBuilder.Append("\r\n    <a href=\"");
	templateBuilder.Append(linkurl("ajax_list",ajaxz["id"].ToString().Trim(),1));

	templateBuilder.Append("\">" + ajaxz["title"].ToString().Trim() + "</a>\r\n          ");
	}	//end loop


	templateBuilder.Append("\r\n          </div>\r\n          ");
	}	//end loop


	templateBuilder.Append("\r\n \r\n  </div>\r\n  \r\n  \r\n  <hr>\r\n  \r\n  \r\n  <ul class=\"sub_menu\">\r\n  ");
	DataTable category_list = get_category_list(10, 0);
	

	int cdr__loop__id=0;
	foreach(DataRow cdr in category_list.Rows)
	{
		cdr__loop__id++;


	templateBuilder.Append("\r\n    <li>\r\n    \r\n      <a  href=\"");
	templateBuilder.Append(linkurl("photo_list",cdr["id"].ToString().Trim(),1));

	templateBuilder.Append("\" >" + cdr["title"].ToString().Trim() + "</a></li>\r\n    ");
	}	//end loop


	templateBuilder.Append("\r\n    \r\n  </ul>\r\n  <ul class=\"pic_w_con\">\r\n\r\n    ");
	DataTable photo_list6 = get_photo_list(10, 0, 10, "is_lock=0");
	

	int pdr6__loop__id=0;
	foreach(DataRow pdr6 in photo_list6.Rows)
	{
		pdr6__loop__id++;


	templateBuilder.Append("\r\n     <li><a href=\"");
	templateBuilder.Append(linkurl("photo_show",pdr6["id"].ToString().Trim()));

	templateBuilder.Append("\"><img src=\"" + pdr6["img_url"].ToString().Trim() + "\" width=\"111\" height=\"111\" alt=\"" + pdr6["title"].ToString().Trim() + "\" /></a></li>\r\n     ");
	}	//end loop


	templateBuilder.Append("\r\n    \r\n  \r\n  </ul>\r\n  \r\n  \r\n  <hr>\r\n  \r\n  \r\n  <div class=\"centre_col\">\r\n    <ul>\r\n     ");
	DataTable article_list = get_article_list(1, 0, 12, "");
	

	int adr4__loop__id=0;
	foreach(DataRow adr4 in article_list.Rows)
	{
		adr4__loop__id++;


	templateBuilder.Append("\r\n      <li>\r\n        <div class=\"img\"><a href=\"");
	templateBuilder.Append(linkurl("article_show",adr4["id"].ToString().Trim()));

	templateBuilder.Append("\"><img src=\"" + adr4["img_url"].ToString().Trim() + "\" width=\"459\" ></a></div>\r\n        <h1><a href=\"");
	templateBuilder.Append(linkurl("article_show",adr4["id"].ToString().Trim()));

	templateBuilder.Append("\">" + adr4["title"].ToString().Trim() + "</a></h1>\r\n        <p class=\"time\">" + adr4["add_time"].ToString().Trim() + "</p>\r\n        <p class=\"con\"><a href=\"");
	templateBuilder.Append(linkurl("article_show",adr4["id"].ToString().Trim()));

	templateBuilder.Append("\">");
	templateBuilder.Append(Utils.DropHTML(adr4["zhaiyao"].ToString().Trim(),160));

	templateBuilder.Append("</a></p>\r\n      </li>\r\n      ");
	}	//end loop


	templateBuilder.Append("\r\n    </ul>\r\n    <div class=\"clearfix\"></div>\r\n    <div class=\"centre_col_more\"><a href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\">查看更多</a></div>\r\n  </div>\r\n  <dl class=\"centre_col_list\">\r\n    \r\n    ");

	templateBuilder.Append("<dt><a style=\"color:#D94650;\" href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\" >\r\n                        有趣的事\r\n                    </a></dt>\r\n\r\n          ");
	DataTable category_list1 = get_category_list(1, 0);
	

	int cdr1__loop__id=0;
	foreach(DataRow cdr1 in category_list1.Rows)
	{
		cdr1__loop__id++;


	templateBuilder.Append("\r\n    <dd>\r\n    \r\n      <a  href=\"");
	templateBuilder.Append(linkurl("article_list",cdr1["id"].ToString().Trim(),1));

	templateBuilder.Append("\" >" + cdr1["title"].ToString().Trim() + "</a></dd>\r\n    ");
	}	//end loop




	templateBuilder.Append("\r\n  \r\n  </dl>\r\n  <div class=\"clearfix\"></div>\r\n\r\n</div> \r\n  \r\n");

	templateBuilder.Append("<footer>\r\n  <div class=\"wrapper\">\r\n    <div class=\"sitemap\"><strong>IHONG<font class=\"hongmaColor\">MA</font></strong><br><a href=\"#\">sitemap</a></div>\r\n    <p class=\"usfrid\">\r\n      <strong>访问我们的好友</strong><span><a href=\"http://www.microsoft.com/\" target=\"_blank\">微软</a>|<a href=\"http://feixin.10086.cn/\" target=\"_blank\">飞信</a>|<a href=\"http://www.bjhqlc.com/\" target=\"_blank\">华强联创</a>|<a href=\"http://www.canyin.com/\" target=\"_blank\">中国餐饮网</a>|<a href=\"http://www.baidu.com/\" target=\"_blank\">百度</a>|<a href=\"http://www.csdn.net/\" target=\"_blank\">csdn</a></span>\r\n    </p>\r\n    <p class=\"cp\">Copyright &copy; <strong>Ihongma</strong> 京ICP备12052092号&nbsp;&nbsp;&nbsp;<span><a href=\"/services.aspx\">鸿马服务</a>|<a href=\"/contact_sub.aspx\">联系我们</a>|<a href=\"/content/about.aspx\">关于我们</a></span><br><a class=\"blog\"  target=\"_blank\" href=\"http://e.weibo.com/ihongma\">微博关注</a></p>\r\n    <div class=\"clearfix\"></div>\r\n  </div>\r\n</footer>\r\n\r\n\r\n\r\n\r\n\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery-1.7.1.min.js\"></");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery-ui.js\"></");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/ihongma.js\"></");
	templateBuilder.Append("script>\r\n<!--[if lt IE 9]>\r\n<script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></");
	templateBuilder.Append("script>\r\n<script src=\"http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js\"></");
	templateBuilder.Append("script>\r\n<![endif]-->\r\n\r\n\r\n<!-- include jQuery + carouFredSel plugin -->\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery.carouFredSel-6.2.1-packed.js\"></");
	templateBuilder.Append("script>");


	templateBuilder.Append("\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n</body>\r\n</html>\r\n ");set_page_caceh("indexv2", templateBuilder.ToString()); 

	Response.Write(templateBuilder.ToString());
}
</script>
